#!/usr/bin/python
import socket 
import sys 
def client_send_and_receive(op='',port=8001):	
	    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  
	    sock.connect(('localhost', port))  
	    import time  
	    sock.send(op)  
	    print sock.recv(1024)  
	    sock.close()  

delimiter=' '
cmd=delimiter.join(sys.argv[1:])
client_send_and_receive(cmd)
